<%--
  Created by IntelliJ IDEA.
  User: Jia_ly
  Date: 2017/2/12
  Time: 9:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
    request.setAttribute("basePath", basePath);
%>
<%@ include file="../frame/head.jsp" %>
<html>
<head>
    <script src="${basePath}/resources/investigation/js/user/adduser.js"></script>
    <title>添加用户</title>
</head>
<body>
<section>
    <%@include file="../frame/top.jsp" %>
    <section class="boxMain">
        <section class="hbox stretch">
            <%@include file="../frame/aside.jsp" %>
            <div>
                <header>
                    <h3 style="color: #0b6cbc;text-align: center">个人信息</h3>
                </header>
                <hr>
                <div>
                    <div class="table-responsive">
                        <table class="table table-bordered">
                            <tbody style="text-align:center">
                            <tr>
                                <td><strong>用户名:</strong></td>
                                <td>
                                    <div class="col-xs-4">
                                        <input id="userName" type="text" class="form-control">
                                        <input id="error1" type="text" value="用户名不能为空" readonly style='color: red;border-left:0px;border-top:0px;border-right:0px;border-bottom:1px '>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td><strong>姓名:</strong></td>
                                <td>
                                    <div class="col-xs-4">
                                        <input id="Name" type="text" class="form-control">
                                        <input id="error2" type="text" value="姓名不能为空" readonly style='color: red;border-left:0px;border-top:0px;border-right:0px;border-bottom:1px '>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td><strong>角色:</strong></td>
                                <td>
                                    <div class="col-xs-4">
                                        <select id="roleid" class="form-control">
                                            <option value="1">管理员</option>
                                            <option value="2">老师</option>
                                            <option value="3" selected>学生</option>
                                        </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td><strong>邮箱:</strong></td>
                                <td>
                                    <div class="col-xs-4">
                                        <input id="mail" type="text" class="form-control">
                                        <input id="error3" type="text" value="邮箱不能为空" readonly style='color: red;border-left:0px;border-top:0px;border-right:0px;border-bottom:1px '>
                                        <input id="error4" type="text" value="邮箱格式错误" readonly style='color: red;border-left:0px;border-top:0px;border-right:0px;border-bottom:1px '>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div align="center">
                    <button id="add" onclick="add()" type="button" class="btn btn-s-md btn-primary">添加</button>
                    &nbsp;&nbsp;
                    <button id="cancel" type="button" onclick="history.go(-1)" class="btn btn-s-md btn-danger">返回</button>
                </div>
            </div>
        </section>
    </section>
</section>
</body>
</html>